package miiteen.demo.duty.dao;



import miiteen.data.dao.impl.BaseDaoImpl;
import miiteen.demo.duty.beans.DutyInfo;
import miiteen.demo.duty.beans.Instruction;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Repository("dutyInfoDao")
public class DutyInfoDao extends BaseDaoImpl<DutyInfo> {
    @Override
    protected String getMapper(){
        return "miiteen.demo.duty.beans.DutyInfo";
    }

    @Resource(name = "sqlSessionFactory3")
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory){
        super.setSqlSessionFactory(sqlSessionFactory);
    }

    public List<DutyInfo> findByTime(Map<String,Object> map){
        return getSqlSession().selectList(getMapper()+".findByTime",map);
    }


}
